package com.pet.api.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("order-service")
public interface OrderClient {
    @PutMapping("/orders/review")
    void updateOrderByReview(@RequestParam Long orderId);

    @GetMapping("/orders/orderDetail")
    List<Integer> getDetailByOrder(@RequestParam Long orderId);
}